package org.example.entity;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @BelongsProject: StudentSystem
 * @BelongsPackage: org.example.entity
 * @Author: StarBonny
 * @CreateTime: 2024-12-22  22:46
 * @Description: 班级实体类
 * @Version: 1.0
 */
public class Class {
    private int classId;
    private String name;
    private Date submitDate;
    private int status;
    private int majorIdFk;

    @Override
    public String toString() {
        return "Class{" +
                "classId=" + classId +
                ", name='" + name + '\'' +
                ", submitDate=" + submitDate +
                ", status=" + status +
                ", majorIdFk=" + majorIdFk +
                '}';
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getSubmitDate() {
        return submitDate;
    }

    public void setSubmitDate(Date submitDate) {
        this.submitDate = submitDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getMajorIdFk() {
        return majorIdFk;
    }

    public void setMajorIdFk(int majorIdFk) {
        this.majorIdFk = majorIdFk;
    }

    public Class() {}

    public Class(int classId, String name, Date submitDate, int status, int majorIdFk) {
        this.classId = classId;
        this.name = name;
        this.submitDate = submitDate;
        this.status = status;
        this.majorIdFk = majorIdFk;
    }
}
